import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import {useMine} from './useMine'
import RootPageComponent from '@/pages/components/RootPageComponent/RootPageComponent';
import Header from './Header/Header';
import List from './List/List';
export interface IProps extends ICompProps {}
Mine.defaultProps = {} as Partial<IProps>;
function Mine(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('Mine', className);
    const {listArr,userInfo} = useMine()
    return (
        <RootView className={localClassName} style={style}>
            <RootPageComponent leftTitle="我的">
                <View className="Mine_container">
                    <Header userInfo={userInfo}></Header>
                    <List listArr={listArr}></List>
                </View>
            </RootPageComponent>
        </RootView>
    );
}
export default React.memo(Mine as FC<IProps>);
const RootView = styled(View)`
    &.Mine {
        .Mine_container {
            padding: 32px 40px;
        }
    }
`;
